<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRMBMW</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/car.js"></script>
</head>
<body>
<table id="pro_datagrid"></table>

<div id="pro_toolbar">
    <shiro:hasPermission name="car:saveOrUpdate">
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'" data-cmd="add">添加</a>
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">编辑</a>
    </shiro:hasPermission>

    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>

    <span>查询:</span><input class="easyui-textbox" prompt="车牌号/车辆品牌" id="keyword">

    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="query"></a>
</div>

<div id="pro_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save" data-url="saveOrUpdate"
       data-from="pro_form">保存</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>


<div id="pro_dialog" align="center">
    <form method="post" id="pro_form">
        <input type="hidden" name="id">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px">
                <td>
                    车主姓名:
                </td>
                <td>
                    <input class="easyui-textbox" name="name">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    车辆品牌:
                </td>
                <td>
                    <input class="easyui-combobox" id="carbrand" prompt="请选择" name="carbrand.id"
                           data-options="editable:false,panelHeight:'auto',
                           valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=carbrand'">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    车辆型号:
                </td>
                <td>
                    <input class="easyui-textbox" name="model">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    车牌号码:
                </td>
                <td>
                    <input class="easyui-textbox" name="number" id="number">
                </td>
            </tr>

            <tr style="height:40px">
                <td>
                    排气量/L:
                </td>
                <td>
                    <input class="easyui-textbox" name="displacement">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    购买日期:
                </td>
                <td>
                    <input class="easyui-datebox" name="date">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    市场估价:
                </td>
                <td>
                    <input class="easyui-textbox" name="price">
                </td>
            </tr>


            <tr style="height:40px">
                <td>
                    功能分类:
                </td>
                <td>
                    <input class="easyui-combobox" name="status"
                           data-options="panelHeight:'auto',
                            valueField: 'id',
                            limitToList: true,
                            editable:false,
                            textField: 'value',
                            data: [{
                                id: '1',
                                value: '载客'
                            },{
                                id: '0',
                                value: '载物'
                            }]">
                </td>
            </tr>
            <tr style="height:40px">
                <td>
                    车载大小:
                </td>
                <td>
                    <input class="easyui-combobox" name="size"
                           data-options="panelHeight:'auto',
                            valueField: 'id',
                            limitToList: true,
                            editable:false,
                            textField: 'value',
                            data: [{
                                id: '1',
                                value: '小型'
                            },{
                                id: '0',
                                value: '大型'
                            }]">
                </td>

            </tr>
            <tr style="height: 100px">
                <td>
                    备注:
                </td>
                <td>
                    <input class="easyui-textbox" name="note">
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>